package com.csun.dsms.model.domain;

import com.csun.dsms.comment.core.mybatis.BaseEntity;
import com.csun.dsms.model.dto.file.FileRelevance;
import lombok.Data;

import java.util.List;
import javax.persistence.*;
@Data
@Table(name = "dsms_article")
public class DsmsArticle extends BaseEntity {

    /**
     * 标题
     */
    private String title;

    /**
     * 类型 1-通知公告 2-政策法规 3-奖励 4-惩罚
     */
    @Column(name = "article_type")
    private Integer articleType;

    /**
     * 排序号
     */
    private Integer number;

    /**
     * 状态 ENABLE-已发布 DISABLE-未发布
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 首页照片
     */
    @Column(name = "head_pic")
    private String headPic;

    /**
     * 正文
     */
    private String content;

    /**
     * 类型类
     */
    @Transient
    private List<Integer> articleTypes;

    private Long views;

    private List<DsmsArticleResource> articleResourceList;

}